package com.x.provider.api.common.enums;

public enum CustomerResumeFieldEnum {
    Height(2),
    BirthdayYear(1),
    SalaryMonth(3),
    Degree(4),
    MarriageStatus(5),
    Shape(6),
    RegionIdLevel2(7),
    Children(8),
    WantBaby(9),
    Smoke(7),
    Drink(8),
    ;

    private final int value;

    CustomerResumeFieldEnum(int value){
        this.value = value;
    }

    public static CustomerResumeFieldEnum valueOf(int value){
        for (CustomerResumeFieldEnum item : CustomerResumeFieldEnum.values()) {
            if (item.value == value){
                return item;
            }
        }
        throw new IllegalStateException("value:" + value);
    }

    public int getValue(){
        return value;
    }
}
